#ifndef BUZZER_H
#define BUZZER_H

#include "bsp_pwm.h"

typedef enum
{
    BUZZER_HIGH_LEVEL = 0,
    BUZZER_MEDIUM_LEVEL,
    BUZZER_LOW_LEVEL,
} BuzzerLevel_e;

typedef enum 
{
    BUZZER_OFF = 0,
    BUZZER_ON,
} BuzzerState_e;

typedef struct 
{
    PWMInstance* pwm_instance;
    BuzzerLevel_e level;
} Buzzer_Config_s;

typedef struct buzzer
{
    PWMInstance* pwm_instance;
    BuzzerLevel_e level;
    BuzzerState_e state;
} BuzzerInstance;

#endif
